On the Stack Sortable and Pushpopable Permutations

نویسندگان

  • Yue–Li Wang
  • Dyi-Rong Duh
چکیده

This work proposes an O(log n) time parallel algorithm for testing whether a permutation is stack sortable or not by O(n) processors under the PRAM EREW computational model. Additionally, the number of permutations which are both stack sortable and pushpopable is also discussed, and an equality is finally obtained, which combines n!, 2, Cn, and Un together where Cn is the Catalan number and Un is the number of permutations which are both stack unsortable and unpushpopable. Keyword: Permutations, stack sortable permutations, inverse permutations, inversion tables, involution permutations, Catalan numbers.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

2-stack Pushall Sortable Permutations

In the 60’s, Knuth introduced stack-sorting and serial compositions of stacks. In particular, one significant question arise out of the work of Knuth: how to decide efficiently if a given permutation is sortable with 2 stacks in series? Whether this problem is polynomial or NP-complete is still unanswered yet. In this article we introduce 2-stack pushall permutations which form a subclass of 2-...

متن کامل

132-avoiding two-stack sortable permutations, Fibonacci numbers, and Pell numbers

We describe the recursive structures of the set of two-stack sortable permutations which avoid 132 and the set of two-stack sortable permutations which contain 132 exactly once. Using these results and standard generating function techniques, we enumerate two-stack sortable permutations which avoid (or contain exactly once) 132 and which avoid (or contain exactly once) an arbitrary permutation ...

متن کامل

Sorted and or sortable permutations

In his Ph D thesis Julian West studied in depth a map that acts on permutations of the symmetric group Sn by partially sorting them through a stack The main motivation of this paper is to characterize and count the permutations of Sn which we call sorted permutations This is equivalent to counting preorders of increasing binary trees We rst nd a local characterization of sorted permutations The...

متن کامل

Multi-statistic enumeration of two-stack sortable permutations

Using Zeilberger’s factorization of two-stack-sortable permutations, we write a functional equation — of a strange sort — that defines their generating function according to five statistics: length, number of descents, number of right-to-left and left-to-right maxima, and a fifth statistic that is closely linked to the factorization. Then, we show how one can translate this functional equation ...

متن کامل

2-stack Sortable Permutations with a given Number of Runs

Using earlier results we prove a formula for the number W(n,k) of 2stack sortable permutations of length n with k runs, or in other words, k − 1 descents. This formula will yield the suprising fact that there are as many 2-stack sortable permutations with k−1 descents as with k−1 ascents. We also prove that W(n,k) is unimodal in k, for any fixed n.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2007